Skip to content

Conversation

@JordonPhillips
Copy link
Contributor

This resolves the issue we were having of the CRT not reading data. Basically the problem is that the CRT seemingly will close out if it ever receives empty bytes. Previously we were buffering with a BytesIO, and so the CRT would just immediately read that and call it a day.

On the other hand, if it receives a BlockingIOError it'll just try again later. That's what the transcribe streaming sdk does too. So replaces the BytesIO buffer with one based on the transcribe buffer.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@JordonPhillips JordonPhillips requested a review from a team as a code owner March 7, 2025 14:07
@JordonPhillips JordonPhillips force-pushed the crt-buffer branch 2 times, most recently from 54c279f to fe467f0 Compare March 7, 2025 16:14
@JordonPhillips JordonPhillips merged commit 8297c56 into develop Mar 7, 2025
2 checks passed
@JordonPhillips JordonPhillips deleted the crt-buffer branch March 7, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants